package nj.yb.entity.request;

import com.alibaba.fastjson.annotation.JSONField;

public class JoinGroupRequest {
    @JSONField(ordinal = 1)
    private final String type = RequestType.JOIN_GROUP;
    @JSONField(ordinal = 2)
    private String username;
    @JSONField(ordinal = 3)
    private String groupname;


    public String getType() {
        return type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    @Override
    public String toString() {
        return "JoinGroupRequest{" +
                "type='" + type + '\'' +
                ", username='" + username + '\'' +
                ", groupname='" + groupname + '\'' +
                '}';
    }
}
